﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebShopData;

namespace TestDBCrud
{
    class Program
    {
        static void Main(string[] args)
        {
            List<OrderRow> orderRowsLista = new List<OrderRow>();

            int orderID = 1;

            orderRowsLista = OrderRows.GetOrderRows(orderID);

            foreach (var item in orderRowsLista)
            {
                Console.WriteLine(item);
            }
            Console.ReadLine();














            //try
            //{
            //    int noll = 0;
            //    int res = 2 / noll;

            //}
            //catch (Exception exception)
            //{
               
            //    DBException.AddException(exception.Message, exception.GetType().ToString());
            //    throw new Exception();
            //}
            

         
            //var article = Articles.GetArticle(2);
            //Console.WriteLine(article);
            //Console.ReadLine();

        //    Console.WriteLine(Orders.GetOrderID());
        //    Console.WriteLine(OrderRows.GetOrderRows(2));

        //    Console.WriteLine(Orders.GetOrder(2));

        //    try
        //    {
        //        List<Article> testArticleList = Articles.GetArticles();

        //        foreach (var article in testArticleList)
        //        {
        //            Console.WriteLine(article);
        //            Console.ReadLine();
        //        }
        //    }
        //    catch (DBException e)
        //    {
        //        Console.WriteLine(e.Message);
        //        Console.ReadLine();
        //    }

        }
    }
}
